package com.util;

import com.Pojo.AccountInfo;
import com.Pojo.AcountFund;
import com.util_Entity.u_AccountInfo;
import com.util_Entity.u_AcountFund;

public class Switc {
	public static u_AccountInfo info(AccountInfo ace){
		u_AccountInfo u = new u_AccountInfo();
		u.setAccountid(ace.getAccountid());
		u.setCreatetime(JsonUtils.dateToStrLong(ace.getCreatetime()));
		u.setUpdatetime(JsonUtils.dateToStrLong(ace.getUpdatetime()));
		u.setHeadimg(ace.getHeadimg());
		u.setId(ace.getId());
		u.setNickname(ace.getNickname());
		u.setPhone(ace.getPhone());
		return u;
	}
	
	
	public static u_AcountFund fund(AcountFund ace){
		u_AcountFund u = new u_AcountFund();
		u.setAccountid(ace.getAccountid());
		u.setBalance(ace.getBalance());
		u.setCreatetime(JsonUtils.dateToStrLong(ace.getCreatetime()));
		u.setId(ace.getId());
		u.setUpdatetime(JsonUtils.dateToStrLong(ace.getUpdatetime()));
		u.setWithdrawlimit(ace.getWithdrawlimit());
		return u;
	}
}
